package com.dragon.modules.yuegou.mapper.points;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dragon.modules.yuegou.entity.points.RateEntity;
import com.dragon.modules.yuegou.model.points.Rate;
import com.dragon.modules.yuegou.query.points.PointRateQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 积分与现金兑换配比表 Mapper接口
 *
 * @author pbuilder generated
 * @date 2019-04-02 17:40:47
 * @version 2.0
 */
@Component("ptRateMapper")
public interface RateMapper extends BaseMapper<RateEntity> {

    /**
     * 积分配比分页列表
     * */
    IPage<Rate> searchRate(IPage page, @Param("query") PointRateQuery query);

    void updateOnlineRatioNull(String id);

    void updateRatioNull(String id);
}
